package com.srwl.easeui.utils;

import android.app.ActivityManager;
import android.content.Context;

import java.util.List;

public class EaseUtils {
    public static boolean isSingleActivity(Context var0) {
        ActivityManager var1 = (ActivityManager)var0.getSystemService("activity");
        List var2 = null;

        try {
            var2 = var1.getRunningTasks(1);
        } catch (SecurityException var4) {
            var4.printStackTrace();
        }

        if (var2 != null && var2.size() >= 1) {
            return ((ActivityManager.RunningTaskInfo)var2.get(0)).numRunning == 1;
        } else {
            return false;
        }
    }
}
